// 引入 request 文件
import { UserPermission } from '../../typings/types/mine';
import { http, request } from '../utils/request';

// 以下 api 为示例，实际与项目相匹配
// 退出登录
export const loginoutAPI = () => {
  return request({
    url: '/account/logout',
    method: 'POST',
  });
};

//获取用户信息
export const userProfileAPI = () => {
  return http<UserPermission>({
    url: '/user/get-permission-info',
    method: 'GET',
  });
};
